package com.i2works.smartluolong.web.service.user;


import com.i2works.smartluolong.utils.basecommon.BaseCommonService;
import com.i2works.smartluolong.utils.exception.ServiceException;
import com.i2works.smartluolong.web.entity.user.UserResDO;
import com.i2works.smartluolong.web.entity.user.UserResQuery;

import java.util.List;
import java.util.Set;

/**
 * 会员资源表业务实现接口
 *
 * @author Liu Yutao koal@vip.qq.com
 * @date 2016/2/26 14:30
 */

public interface IUserResService extends BaseCommonService<UserResQuery,UserResDO> {

	/**
	 * 查询某会员的所有资源
	 */
	Set<UserResDO> queryUserResList(UserResQuery query) throws ServiceException;
	
	/**
	 * 查询资源树
	 */
	 List<UserResDO> queryTreeList(UserResQuery query) throws ServiceException;

	/**
	 * 查询资源下拉菜单
	 */
	List<UserResDO> queryResSelect(UserResQuery query) throws ServiceException;

	/**
	 * 返回某人所拥有的资源ID
	 */
	 UserResDO queryHasChecked(UserResQuery query) throws ServiceException;

}
